import request from '@/utils/request'

export function getPageExpressDelivery(data) {
  return request({
    url: '/user/express/getPageExpressDelivery',
    method: 'post',
    data
  })
}

export function deleteExDeBatch(data) {
  return request({
    url: '/user/express/deleteExDeBatch',
    method: 'post',
    data
  })
}

export function addExDe(data) {
  return request({
    url: '/user/express/addExDe',
    method: 'post',
    data
  })
}

export function getExDeliveryInfo(data) {
  return request({
    url: '/all/expressDelivery/getExDeliveryInfo',
    method: 'post',
    data
  })
}

export function deleteOneExDe(params) {
  return request({
    url: '/user/express/deleteOneExDe',
    method: 'get',
    params
  })
}

export function prePay(data) {
  return request({
    url: '/web/order/pay',
    method: 'post',
    data
  })
}


export function checkTradeOrderStatus(params) {
  return request({
    url: '/web/order/pay/states',
    method: 'get',
    params
  })
}


export function tradePayCancel(params) {
  return request({
    url: '/web/order/pay/cancel',
    method: 'get',
    params
  })
}

export function createOrder(data) {
  return request({
    url: '/user/order/createOrder',
    method: 'post',
    data
  })
}